package com.wanxi;

public class PhoneSub {
    public static void main(String[] args) {
        String str = "13987487378";
        String start = str.substring(0, 3);
        String end = str.substring(7);
        System.out.println(start);
        System.out.println(end);
        String phone = start + "****" + end;
        System.out.println(phone);
        String phone1=phone.replace("*","&");
        System.out.println(phone1);
    }
}
